# coding=utf-8
from django.db import models
from app.util.model import ModelExtendManager
# Create your models here.

class Task(models.Model):
    #sql
    sql = models.TextField()
    
    #任务标题
    title = models.CharField(max_length=32)
    #创建人
    user = models.ForeignKey('auth.User')
    createTime = models.DateTimeField()
    lastModifiedTime = models.DateTimeField()
    modifieTimes = models.IntegerField(max_length=6)

    mails = models.TextField()
    times = models.IntegerField(max_length=6)
    firstSendTime = models.DateTimeField()
    lastSendTime = models.DateTimeField()
    
    objects = ModelExtendManager()
    
    
